* Restructure feature code recovery logic
* Refactor feature code recovery logic
Generically recover feature code with incorrect entries
(patterns/numbers).
We delete malformed feature codes to mitigate the use case of feature
codes wrongly configured with entries matching another feature code,
making it impossible to patch (duplicate entries error).
* Refactor createCallflow to handle errors
* Allow to choose number to use for E911
* Remove unnecessary strategyGetFeaturedNumbers function
* Code comments and i18n updates + flow fixes for E911
* Update pending i18n files
* Check class instead of data attr before unassign e911 main number
* Fix on check logic
* Do not display choose dialog when only one e911 number is left after removing E911 from the account emergency number
* Change styles file extension from .css to .scss, to use SASS
* Set style for e911 information banner
* Show main company numbers section and E911 popup on banner click
* Refactor strategyRefreshTemplate to receive arguments via object wrapper
* Pass action from myOffice layout to strategy.strategyRefreshTemplate
* Check e911 number availability and show edit dialog or toast
* Fix typo in property name
* Extract main numbers refresh template process into separate function
* Refactor to use Lodash instead of jQuery utility functions
* Pass action to banner via topMessage object
* Refactor checkMissingE911 function
* Convert action to object, to include more parameters
* Add action callback for e911 at numbers strategy
* Fixes on flow to check if update Emergency Caller ID
* Request current account from API, when checking to update E911 caller ID
* Fix e911 phone number filter
* Use current authenticated account instead of requesting it from API
* Modify strategyNumbersBindEvents to use Lodash and reduce duplicated code
* Refactor updateCallflow to use waterfall flow, and helper functions
* Modifications to E911 functions
To prevent invoking strategyChangeEmergencyCallerId from multiple places
* Generalize popup to choose numbers + function to check if external caller ID needs to be set
* Fixes on update e911 waterfall tasks
* Set active choice on caller ID popup
* Remove log entry
* Change styles file extension from .css to .scss, to use SASS
* Set style for e911 information banner
* Show main company numbers section and E911 popup on banner click
* Refactor strategyRefreshTemplate to receive arguments via object wrapper
* Pass action from myOffice layout to strategy.strategyRefreshTemplate
* Check e911 number availability and show edit dialog or toast
* Fix typo in property name
* Extract main numbers refresh template process into separate function
* Refactor to use Lodash instead of jQuery utility functions
* Pass action to banner via topMessage object
* Refactor checkMissingE911 function
* Convert action to object, to include more parameters
* Add action callback for e911 at numbers strategy
* Fixes on flow to check if update Emergency Caller ID
* Request current account from API, when checking to update E911 caller ID
* Fix e911 phone number filter
* Use current authenticated account instead of requesting it from API
* Allow to choose number to use for E911
* Remove unnecessary strategyGetFeaturedNumbers function
* Code comments and i18n updates + flow fixes for E911
* Update pending i18n files
* Check class instead of data attr before unassign e911 main number
* Fix on check logic
* Do not display choose dialog when only one e911 number is left after removing E911 from the account emergency number
* Change styles file extension from .css to .scss, to use SASS
* Set style for e911 information banner
* Show main company numbers section and E911 popup on banner click
* Refactor strategyRefreshTemplate to receive arguments via object wrapper
* Pass action from myOffice layout to strategy.strategyRefreshTemplate
* Check e911 number availability and show edit dialog or toast
* Fix typo in property name
* Extract main numbers refresh template process into separate function
* Refactor to use Lodash instead of jQuery utility functions
* Pass action to banner via topMessage object
* Refactor checkMissingE911 function
* Convert action to object, to include more parameters
* Add action callback for e911 at numbers strategy
* Fixes on flow to check if update Emergency Caller ID
* Request current account from API, when checking to update E911 caller ID
* Fix e911 phone number filter
* Use current authenticated account instead of requesting it from API
* Modify strategyNumbersBindEvents to use Lodash and reduce duplicated code
* Refactor updateCallflow to use waterfall flow, and helper functions
* Modifications to E911 functions
To prevent invoking strategyChangeEmergencyCallerId from multiple places
* Generalize popup to choose numbers + function to check if external caller ID needs to be set
* Fixes on update e911 waterfall tasks
* Set active choice on caller ID popup
* Remove log entry
* Change styles file extension from .css to .scss, to use SASS
* Set style for e911 information banner
* Show main company numbers section and E911 popup on banner click
* Refactor strategyRefreshTemplate to receive arguments via object wrapper
* Pass action from myOffice layout to strategy.strategyRefreshTemplate
* Check e911 number availability and show edit dialog or toast
* Fix typo in property name
* Extract main numbers refresh template process into separate function
* Refactor to use Lodash instead of jQuery utility functions
* Pass action to banner via topMessage object
* Refactor checkMissingE911 function
* Convert action to object, to include more parameters
* Add action callback for e911 at numbers strategy
* Fixes on flow to check if update Emergency Caller ID
* Request current account from API, when checking to update E911 caller ID
* Fix e911 phone number filter
* Use current authenticated account instead of requesting it from API
* Flatten and use declarative style to refactor feature code creation
* Fix incorrect path to get/set feature code
* Remove unnecessary feature code defaults and callback
* feature codes configured as patterns instead of single numbers
* Update feature codes patterns
* Code style
* Verify if needed pattern is given by feature codes
* Fix wrong pattern
* Update sub callflows and menus on incoming strategies reset
* Add more details to reset dialog message
* Fix parameter for callback on main sub callflow creation
* Update sub callflows and menus on incoming strategies reset
* Add more details to reset dialog message
* Fix parameter for callback on main sub callflow creation
* Flatten and use declarative style to refactor feature code creation
* Fix incorrect path to get/set feature code
* Remove unnecessary feature code defaults and callback
* feature codes configured as patterns instead of single numbers
* Update feature codes patterns
* Code style
* Verify if needed pattern is given by feature codes
* Fix wrong pattern
* Add reset button for incoming call handling strategy
* Delete menus and callflows for call strategy
* Fix code mistakes
* Re-create default call strategy after delete
* Add missing self variable on delete functions
* Small fixes
* Refactor code at strategyGetMainCallflows
* Refactor to use existing callflow functions
* Extract create menu API call to separate function
* Conditionally show the buy numbers action for groups
* Conditionally show the buy numbers action for users
* Conditionally show the buy numbers action for strategy
* Move sub-module templates in their own `views` folder
By using `getTemplate()` we can specify which sub-module a template is
related to, enabling this behavior.
The templates names were shortened by stripping the name of their
sub-module from it since they are stored under their sub-module folder.
String templates are created using `getTemplate()` instead of
`monster.template()` that we are trying to depreciate.
* Only use `getTemplate()` for both regular and string templates